import VueRouter from "vue-router";
import Vue from "vue";
import xinWen from "@/views/xinWen.vue";
import zhuYe from "@/views/zhuYe.vue"

import tiYu from "@/views/tiYu.vue";
import mainSport from "@/views/mainSport.vue"
import outSport from "@/views/outSport.vue"
import inSport from "@/views/inSport.vue"

Vue.use(VueRouter);
const router = new VueRouter({
    routes: [
        { path: "/", redirect: "/zhuye" },
        { path: "/zhuYe", component: zhuYe },
        { path: "/xinWen", component: xinWen },
        {
            path: "/tiYu",
            component: tiYu,
            children: [
                { path: "mainSport", component: mainSport },
                { path: "outSport", component: outSport },
                {path:"inSport",component:inSport},
            ]
        },
    ]
});
export default router;